package com.windsea.relationshipmining.activity;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

import com.windsea.relationshipmining.R;

public class WelcomeNoteDialog extends Dialog implements OnClickListener {

	Button OK;
	Context context;

	public WelcomeNoteDialog(Context context) {
		super(context);
		this.context = context;
		/** It will hide the title */
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.dialog_welcomenote);
		OK = (Button) findViewById(R.id.OK);
		OK.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if (v == OK) {
			Bundle bundle = new Bundle();

			Intent intent = new Intent(getContext(), UserInfoActivity.class);
			bundle.putString("Info", "insert");
			intent.putExtra("UserInfo", bundle);
			context.startActivity(intent);
			dismiss();
		}
	}

}
